﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ElegantFood : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
		labelViewCart.Visible = false;

		Int32 item = ShoppingCartAccess.GetTotalItem();
		if (item > 0)
			labelViewCart.Visible = true;
		displayTotalAmount.Text = item.ToString();
		decimal amount = ShoppingCartAccess.GetTotalAmount();
		displayTotalPrice.Text = String.Format("{0:c}", amount);
    }
}